xsm: annotate setup functions with __init
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Mon, 20 Jun 2016 14:04:23 +0000 (10:04 -0400)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 24 Jun 2016 14:52:51 +0000 (15:52 +0100)
These functions were only called from __init functions.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
xen/xsm/dummy.c
xen/xsm/xsm_core.c

index 9791ad45ba1a572874de603870d5c5915626e976..a082b281712b2695167536286beb8f892e77f544 100644 (file)
@@ -27,7 +27,7 @@ struct xsm_operations dummy_xsm_ops;
         }                                                              \
     } while (0)
 
-void xsm_fixup_ops (struct xsm_operations *ops)
+void __init xsm_fixup_ops (struct xsm_operations *ops)
 {
     set_to_dummy_if_null(ops, security_domaininfo);
     set_to_dummy_if_null(ops, domain_create);
index 3487742609c0e763be0924111daec4432b582176..78d881b4bce06a39402e59cc6bda23bb73c2d457 100644 (file)
@@ -127,7 +127,7 @@ bool __init has_xsm_magic(paddr_t start)
 }
 #endif
 
-int register_xsm(struct xsm_operations *ops)
+int __init register_xsm(struct xsm_operations *ops)
 {
     if ( verify(ops) )
     {